package com.eunion.boot;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import org.springframework.context.annotation.Configuration;

import com.eunion.web.common.vo.Web;
import com.eunion.web.common.vo.WebVo;

/**
 * th:text="${application.WV.__INDEX_URL}"
 * 
 * 
 * @version 2015-9-13
 */
@Configuration
public class ConfigServletContextListener implements ServletContextListener {

	@Override
	public void contextInitialized(ServletContextEvent event) {
		event.getServletContext().setAttribute(Web.APP, new WebVo());
	}

	@Override
	public void contextDestroyed(ServletContextEvent event) {
		event.getServletContext().removeAttribute(Web.APP);
	}

}
